package com.zhn.evsi.client;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Request;
import com.dtflys.forest.annotation.Retry;
import com.dtflys.forest.annotation.Var;
import com.zhn.evsi.interceptor.TokenInterceptor;

import java.util.List;

/**
 * 工业制造
 * */

@BaseRequest(baseURL = "${eveData}${eveDataSns}")
@Retry(maxRetryCount = "3", maxRetryInterval = "1000")
public interface IndustryClient {

    // 行业职位
    // https://esi.evetech.net/latest/characters/2119634223/industry/jobs/?datasource=tranquility&token=1%7CCfDJ8MrqJPYQd2lPo1rpmlAzyLWda3BLvlo0IGqvM6CoDDbHcj5yEpGHn7%2B1ypULSVn5DzfVRtuABHNq%2BbhbwHkfKqfn8NX62SWqErSunJ5U1QESt3G8Lg3KiQsZP16nsapWfUtYtBQC8Ieq6p8Xn6o9Us7LRI529XmLCrO06qpR4Dzk
    @Request(
            url = "/characters/{characters}/industry/jobs/?datasource=tranquility",
            type = "GET",
            interceptor = TokenInterceptor.class
    )
    List<JSONObject> industryJob(@Var("characters") Long characters);


    // 挖掘账本
    // https://esi.evetech.net/latest/characters/2119634223/mining/?datasource=tranquility&page=1&token=1%7CCfDJ8MrqJPYQd2lPo1rpmlAzyLWda3BLvlo0IGqvM6CoDDbHcj5yEpGHn7%2B1ypULSVn5DzfVRtuABHNq%2BbhbwHkfKqfn8NX62SWqErSunJ5U1QESt3G8Lg3KiQsZP16nsapWfUtYtBQC8Ieq6p8Xn6o9Us7LRI529XmLCrO06qpR4Dzk
    @Request(
            url = "/characters/{characters}/mining/?datasource=tranquility",
            type = "GET",
            interceptor = TokenInterceptor.class
    )
    List<JSONObject> industryMining(@Var("characters") Long characters);




}
